/**
 * 视频辅助授权 api js
 */
import request from "@/utils/request";

const baseURL = process.env.VUE_APP_BASE_API;

/**
 *
 * @param {*} data
 * 保存视频辅助授权数据
 */
export function saveOrUpdate(userOid,authorize) {
    console.log(userOid+"-----------"+authorize)
    return request({
      url: process.env.VUE_APP_KSTB_ROUTE_PATH + "/yxpz/videoAssisted/saveOrUpdate?userOid="+userOid+"&authorize="+authorize,
      method: "get",
    });
  }

// export function saveOrUpdate(userOid,authorize) {

// return request({
//     url:
//     process.env.VUE_APP_KSTB_ROUTE_PATH +
//     "/yxpz/videoAssisted/saveOrUpdate",
//     method: "get",
//     params: {
//         userOid,
//         authorize
//     }
// });
// }

export function videoAssistedAuthorize(params) {
    return request({
      url:
        process.env.VUE_APP_KSTB_ROUTE_PATH +
        "/yxpz/videoAssisted/videoAssistedAuthorize",
      method: "post",
      params: params
    });
  }